package com.jm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jm.domain.ResponseResult;
import com.jm.domain.dto.ChangeRoleStatusDto;
import com.jm.domain.dto.RoleDto;
import com.jm.domain.entity.Role;

import java.util.List;


/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-06-24 21:23:20
 */
public interface RoleService extends IService<Role> {

    List<String> selectRolesByUserId(Long id);

    ResponseResult listRole(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult changeStatus(ChangeRoleStatusDto changeRoleStatusDto);

    ResponseResult saveRole(RoleDto roleDto);

    ResponseResult getRoleById(Long id);

    ResponseResult updateRole(Role role);

    ResponseResult deleteRole(Long id);

    ResponseResult listAllRole();
}

